package com.jiepuxun.demo.influxDB;

import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;
import org.influxdb.annotation.TimeColumn;

import java.time.Instant;

@Measurement(database = "test",name = "monitor_data")
public class MonitorData {

    @Column(name = "userId",tag = true)
    private String userId;

    //心率
    @Column(name = "heartRate")
    private Double heartRate;

    //呼吸频率
    @Column(name = "respiratoryRate")
    private Double respiratoryRate;

    @Column(name = "other")
    private Integer other;

    @TimeColumn
    @Column(name = "time")
    private Instant time;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Double getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Double heartRate) {
        this.heartRate = heartRate;
    }

    public Double getRespiratoryRate() {
        return respiratoryRate;
    }

    public void setRespiratoryRate(Double respiratoryRate) {
        this.respiratoryRate = respiratoryRate;
    }

    public Integer getOther() {
        return other;
    }

    public void setOther(Integer other) {
        this.other = other;
    }

    public Instant getTime() {
        return time;
    }

    public void setTime(Instant time) {
        this.time = time;
    }
}
